﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dubbo.Common.Utils
{
    public sealed class ConfigUtils
    {
        public static string Get(string key)
        {
            return System.Configuration.ConfigurationManager.AppSettings[key];
        }

        public static string Get(string key, string defValue)
        {
            var val = System.Configuration.ConfigurationManager.AppSettings[key];
            return string.IsNullOrEmpty(val) ? defValue : val;
        }
    }
}
